package com.sky.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class EmployeeDTO implements Serializable {

    private Long id;

    @ApiModelProperty(value = "用户账号",required = true)
    @NotBlank(message = "用户账号不能为空!")
    private String username;

    @ApiModelProperty(value = "员工姓名",required = true)
    @NotBlank(message = "用户账号不能为空!")
    private String name;

    @ApiModelProperty(value = "手机号",required = true)
    @NotBlank(message = "用户账号不能为空!")
//    @Pattern(regexp = "/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}/")
    private String phone;

    @ApiModelProperty(value = "性别",required = true)
    @NotBlank(message = "用户账号不能为空!")
    private String sex;

    @ApiModelProperty(value = "身份证号",required = true)
    @NotBlank(message = "用户账号不能为空!")
//    @Pattern(regexp = "/(^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x))/")
    private String idNumber;

}
